#include "ThreadPool.hpp"
#include "Task.hpp"
using namespace ThreadPoolModule;

int main()
{
    // ENABLE_FILE_LOG_STRATEGY();
    ENABLE_CONSOLE_LOG_STRATEGY();
    
    ThreadPool<task_t>::GetInstance()->Start();
    int n = 10;
    while (n--)
    {
        ThreadPool<task_t>::GetInstance()->Push(task);
        sleep(1);
    }

    ThreadPool<task_t>::GetInstance()->Stop();

    ThreadPool<task_t>::GetInstance()->Wait();

    return 0;
}